package com.tma.internship.ClassesInfo;

import java.io.Serializable;

import android.graphics.drawable.BitmapDrawable;

public class FileInfo implements Serializable {
	private String name;
	private int size;
	private int numOfPage;
	private boolean isStored;
	private BitmapDrawable img;
	public FileInfo(String name,int size, int numOfPage,boolean isStored){
		this.setName(name);
		this.setSize(size);
		this.setNumOfPage(numOfPage);
		this.setStored(isStored);
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public String getSize() {
		return size/1024 +" KB";
	}
	public void setNumOfPage(int numOfPage) {
		this.numOfPage = numOfPage;
	}
	public int getNumOfPage() {
		return numOfPage;
	}
	public void setStored(boolean isStored) {
		this.isStored = isStored;
	}
	public boolean isStored() {
		return isStored;
	}

	public void setImg(BitmapDrawable img) {
		this.img = img;
	}

	public BitmapDrawable getImg() {
		return img;
	}
}
